package com.fay.designPattern.pattern.behavior.observer;

import org.apache.logging.log4j.message.MapMessage;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/4/20 14:25
 * @Version 1.0
 */
public class Demo {
    public static void main(String[] args) {
        ConcreteSubject subject = new ConcreteSubject();
        subject.registerObserver(new ConcreteObserverOne());
        subject.registerObserver(new ConcreteObserverTwo());
        subject.notifyObserver(new MapMessage());
    }
}
